package com.platform.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.platform.dao.AccountSnapshotSpcDao;
import com.platform.entity.AccountSnapshotSpcEntity;
import com.platform.service.AccountSnapshotSpcService;

/**
 * Service实现类
 *
 * @author liweihai
 * @email liweihai12345@sina.com
 * @date 2019-07-24 19:00:39
 */
@Service("accountSnapshotSpcService")
public class AccountSnapshotSpcServiceImpl implements AccountSnapshotSpcService {
    @Autowired
    private AccountSnapshotSpcDao accountSnapshotSpcDao;

    @Override
    public AccountSnapshotSpcEntity queryObject(Integer id) {
        return accountSnapshotSpcDao.queryObject(id);
    }

    @Override
    public List<AccountSnapshotSpcEntity> queryList(Map<String, Object> map) {
        return accountSnapshotSpcDao.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return accountSnapshotSpcDao.queryTotal(map);
    }

    @Override
    public int save(AccountSnapshotSpcEntity accountSnapshotSpc) {
        return accountSnapshotSpcDao.save(accountSnapshotSpc);
    }

    @Override
    public int update(AccountSnapshotSpcEntity accountSnapshotSpc) {
        return accountSnapshotSpcDao.update(accountSnapshotSpc);
    }

    @Override
    public int delete(Integer id) {
        return accountSnapshotSpcDao.delete(id);
    }

    @Override
    public int deleteBatch(Integer[] ids) {
        return accountSnapshotSpcDao.deleteBatch(ids);
    }
}
